// #region 数据定义

import type {OrderItemsProduct} from "@/api/orderItems/types";

export interface PayOrdersData {
  id?: string
  bh?: string
  userCode?: string
  accountId?: string
  orderType?: string
  amount?: number
  currencyType?: string
  shippingAddress?: string
  expiryTime?: string
  orderStatus?: string
  // hasChildren?: boolean
}

export interface CreateOrder extends PayOrdersData {
  orderItems?: OrderItemsProduct[]
  createTime?: string
}

export interface PayOrdersReqData {
  searchKey?: string
  orderStatus?: string
}

// 分页请求参数
export interface PayOrdersReqPageData extends PayOrdersReqData {
  pageNo: number
  pageSize: number
}

// 分页响应数据
export type PayOrdersRespPageData = {
  list: PayOrdersData[]
  total: number
}

// 分页响应数据
export type OrderRespPageData = {
  list: CreateOrder[]
  total: number
}

// 不分页请求参数
export interface PayOrdersReqListData extends PayOrdersReqData {
}

// 不分页响应数据
export type PayOrdersRespListData = PayOrdersData[]
// #endregion
